+2004-11-03 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_get_active): Don't crash
+ if the active_row reference has become invalid. (#157156,
+ Christophe Fergeau)
+
2004-11-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_activate_key_after): As
+2004-11-03 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_get_active): Don't crash
+ if the active_row reference has become invalid. (#157156,
+ Christophe Fergeau)
+
2004-11-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_activate_key_after): As
+2004-11-03 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_get_active): Don't crash
+ if the active_row reference has become invalid. (#157156,
+ Christophe Fergeau)
+
2004-11-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_activate_key_after): As
+2004-11-03 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtkcombobox.c (gtk_combo_box_get_active): Don't crash
+ if the active_row reference has become invalid. (#157156,
+ Christophe Fergeau)
+
2004-11-02 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwindow.c (gtk_window_activate_key_after): As
{
GtkTreePath *path;
path = gtk_tree_row_reference_get_path (combo_box->priv->active_row);
- result = gtk_tree_path_get_indices (path)[0];
- gtk_tree_path_free (path);
+ if (path == NULL)
+ result = -1;
+ else
+ {
+ result = gtk_tree_path_get_indices (path)[0];
+ gtk_tree_path_free (path);
+ }
}
else
result = -1;